// 带标签的模板字符串  

const str = console.log`hell0 world` //[ 'hell0 world' ]


const name  ='husky'
const gender = false
function myTagFun (string, name, gender){
    console.log(string, name, gender)
    // string --> [ 'Hi, ', ' is a ', '' ]
    const sex = gender? 'boy' : 'girl'
    return string[0] + name + string[1] + sex + string[2]
}
const result = myTagFun`Hi, ${name} is a ${gender}.`
console.log(result)